package com.cheetah.start.common.config;

import cn.dev33.satoken.thymeleaf.dialect.SaTokenDialect;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author Feel
 * @date 2021/10/18 15:34
 * @Description:
 */
@Configuration
public class SaTokenConfig {

    /**
     * Sa-Token 标签方言 (Thymeleaf版)
     *
     * @return {@link SaTokenDialect}
     */
    @Bean
    public SaTokenDialect getSaTokenDialect() {
        return new SaTokenDialect();
    }
}
